import {
  getBillList,
  accountOpeningCredit,
  appendRepaymentTurnover,
  collectionReportCredit,
  getRepaymentStatusMap,
  accountClose,
  cancelReportCredit,
  generateFileData,
  submitUploadFile,
  getCreditQueryTime,
  billPayment,
  userCreditQuery,
  getApiToken,
  pushCustomerInfo,
  pushIdCardInfo,
  readyNotary,
  pushContractInfo,
  queryNotary,
  cancelNotary,
  getNotaryLink,
  isOpenNotary,
  queryNotaryCount,
  getBillDetail
} from '@/services/BillingDetails'

export default () => {
  // 获取账单明细
  const GetBillList = (params: any) => {
    return getBillList(params)
  }

  // 开户上报
  const AccountOpeningCredit = (data: any) => {
    return accountOpeningCredit(data)
  }

  // 追加还款流水
  const AppendRepaymentTurnover = (data: any) => {
    return appendRepaymentTurnover(data)
  }

  // 催收上报
  const CollectionReportCredit = (data: any) => {
    return collectionReportCredit(data)
  }

  // 获取催收上报逾期天数
  const GetRepaymentStatusMap = (params: any) => {
    return getRepaymentStatusMap(params)
  }

  // 账户结清
  const AccountClose = (data: any) => {
    return accountClose(data)
  }

  // 取消上报
  const CancelReportCredit = (data: any) => {
    return cancelReportCredit(data)
  }

  // 上报材料生成
  const GenerateFileData = (data: any) => {
    return generateFileData(data)
  }

  // 提交上报材料
  const SubmitUploadFile = (data: any) => {
    return submitUploadFile(data)
  }

  // 征信前置校验
  const GetCreditQueryTime = (params: any) => {
    return getCreditQueryTime(params)
  }

  // 确认支付
  const BillPayment = (data: any) => {
    return billPayment(data)
  }

  // 用户征信查询
  const UserCreditQuery = (data: any) => {
    return userCreditQuery(data)
  }

  // 获取公证Token
  const GetApiToken = (params: any) => {
    return getApiToken(params)
  }

  // 上传订单基本信息
  const PushCustomerInfo = (data: any) => {
    return pushCustomerInfo(data)
  }

  // 上传用户身份证信息
  const PushIdCardInfo = (data: any) => {
    return pushIdCardInfo(data)
  }

  // 申请公证
  const ReadyNotary = (data: any) => {
    return readyNotary(data)
  }

  // 上传合同信息
  const PushContractInfo = (data: any) => {
    return pushContractInfo(data)
  }

  // 查询公证状态
  const QueryNotary = (data: any) => {
    return queryNotary(data)
  }

  // 取消公证
  const CancelNotary = (data: any) => {
    return cancelNotary(data)
  }

  // 更新公证链接
  const GetNotaryLink = (data: any) => {
    return getNotaryLink(data)
  }

  // 获取公证权限
  const IsOpenNotary = (data: any) => {
    return isOpenNotary(data)
  }

  // 获取已出证数量
  const QueryNotaryCount = (data: any) => {
    return queryNotaryCount(data)
  }

  // 获取账单明细
  const GetBillDetail = (params: any) => {
    return getBillDetail(params)
  }

  return {
    GetBillList,
    AccountOpeningCredit,
    AppendRepaymentTurnover,
    CollectionReportCredit,
    GetRepaymentStatusMap,
    AccountClose,
    CancelReportCredit,
    GenerateFileData,
    SubmitUploadFile,
    GetCreditQueryTime,
    BillPayment,
    UserCreditQuery,

    GetApiToken,
    PushCustomerInfo,
    PushIdCardInfo,
    ReadyNotary,
    PushContractInfo,
    QueryNotary,
    CancelNotary,
    GetNotaryLink,
    IsOpenNotary,
    QueryNotaryCount,

    GetBillDetail
  }
}
